import sys

from PyQt5.QtWidgets import QApplication, QWidget, QPushButton

from ui_file import main_window
from ui_file.csv_readf_ui import CSVRead


class MyApp(main_window.MainWindow):
    def __init__(self):
        super().__init__()
        self.ui_set()
        self.run()

    def run(self):
        self.central_window.add_show_window(CSVRead(), 'csv读取')


if __name__ == '__main__':
    my_app = QApplication(sys.argv)
    window = MyApp()
    window.show()
    my_app.exec_()
